import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// import ViteComponents, { AntDesignVueResolver } from 'vite-plugin-components';

// https://vitejs.dev/config/
// export default defineConfig({
//   plugins: [vue(),
//     ViteComponents({
//       customComponentResolvers: [AntDesignVueResolver()],
//     }),]
// })
export default defineConfig({
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    port: 8888,
    proxy: {
      '/api': 'http://www.jbook.top'
    }
  },
})